﻿@using CMSMVC4.MultiResource
@model CMSMVC4.Areas.Main.Models.SendCommentModel
<script language="javascript" type="text/javascript">
    function showmess() {
        $('.commenterror').fadeIn(0).delay(5000).fadeOut(1000);
    }
    function sending() {
        $('.commenterror').html("Đang Gửi...").fadeIn(0);
    }
</script>
<div class="commenttitle">
    <div class="dinhvu_mid_right_textbinhluan">
        @Resource.Comment</div>
    <div class="commenterror    ">
        @Html.ValidationSummary()
    </div>
</div>
<div class="dichvu_mid_right_binhluan">
    @using (Ajax.BeginForm("SendComment", "Comment", new AjaxOptions() { InsertionMode = InsertionMode.Replace, HttpMethod = "Post", UpdateTargetId = "load_comment", OnBegin = "sending()", OnSuccess = "showmess()" }))
    {
        @Html.HiddenFor(x=>x.id)
        @Html.TextBoxFor(x=>x.email,new{@class="emailcomment", placeholder= Resource.Comment_email})
        <textarea name="data" class="datacomment" placeholder= "@Resource.Comment_data">@Model.data</textarea>
        <input  class="sendcomment" type="submit" value="@Resource.Comment_submit" />
    }
</div>
